package com.disgnpattern.learn.chapter2;

/**
 * @author dxy
 * @version 1.0
 * @date 2021/10/21 15:30
 * @decripton 测试
 */
public class CashTest {
    public static void main(String[] args) {
        CashContext cashContext  = new CashContext("满300减100");

        double result = cashContext.getResult(100d * 100d);
        System.out.println(result);

    }
}
